// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from '@/core/interface/view/model';

function getModel(): IGridViewModel {
	return {
		caption: 'OAuth授权',
		title: 'oauth客户端信息表格视图',
		capPSLanguageRes: 'DE.LNAME.OAUTH_CLIENT_DETAILS',
		titlePSLanguageRes: 'PAGE.TITLE.OAUTH_CLIENT_DETAILS.GRIDVIEW',
		showDataInfoBar: false,
		codeName: 'oauth_client_detailsGridView',
		uiEngineModel: [
			{
				name: 'toolbar_tbitem3_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem3',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'New',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem4_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem4',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Edit',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem5_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem5',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'View',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem6_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem6',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Copy',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem24_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem24',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'ToggleRowEdit',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem25_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem25',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'NewRow',
				entityCodeName: '',
			},
			{
				name: 'toolbar_deuiaction1_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'deuiaction1',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'SaveRow',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem8_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem8',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Remove',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem13_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem13',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'ExportExcel',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem21_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem21',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'ExportModel',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem23_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem23',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Import',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem11_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem11',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Print',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem19_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem19',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'ToggleFilter',
				entityCodeName: '',
			},
			{
				name: 'toolbar_tbitem18_click',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWUIACTION',
				eventNames: 'CLICK',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: 'tbitem18',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: 'toolbar',
				uIActionTag: 'Help',
				entityCodeName: '',
			},
			{
				name: 'newdata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
			{
				name: 'opendata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
		],
		ctrls: [
			{
				name: 'toolbar',
				codeName: 'GridViewtoolbar',
				controlType: 'TOOLBAR',
			},
			{
				name: 'grid',
				codeName: 'Main',
				controlType: 'GRID',
			},
		],
		ctrlParams: {
			OAUTH_CLIENT_DETAILStoolbar: {},
			OAUTH_CLIENT_DETAILSgrid: {},
		},
		cssName: '',
		name: 'oauth_client_detailsGridView',
		viewType: 'DEGRIDVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'OAUTH_CLIENT_DETAILS',
		keyPSAppDEField: 'Client_id',
		majorPSAppDEField: 'Client_id',
		funcViewMode: 'MDATAVIEW',
		enableQuickSearch: true,
		expandSearchForm: false,
		newData: {
			deCodeName: 'OAUTH_CLIENT_DETAILS',
			newDataViewName: 'oauth_client_detailsEditView',
		},
		openData: {
			deCodeName: 'OAUTH_CLIENT_DETAILS',
			openDataViewName: 'oauth_client_detailsEditView',
		},
		toolbarItems: [
			{
				actionLevel: '100',
				caption: '新建',
				captionLanResTag: 'TBB.TEXT.*.NEW',
				name: 'tbitem3',
				showCaption: true,
				tooltip: '新建',
				tooltipLanResTag: 'TBB.TOOLTIP.*.NEW',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-file-text-o',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'New',
					uIActionMode: 'SYS',
					actionTarget: '',
					uIActionTag: 'New',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem3_click',
					actionTag: 'New',
					xDataCtrlName: 'grid',
					predefinedType: 'EDITVIEW_NEWACTION',
				},
			},
			{
				actionLevel: '100',
				caption: '编辑',
				captionLanResTag: 'TBB.TEXT.*.EDIT',
				name: 'tbitem4',
				showCaption: true,
				tooltip: '编辑',
				tooltipLanResTag: 'TBB.TOOLTIP.*.EDIT',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-edit',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'Edit',
					uIActionMode: 'SYS',
					actionTarget: 'SINGLEKEY',
					uIActionTag: 'Edit',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem4_click',
					actionTag: 'Edit',
					xDataCtrlName: 'grid',
					predefinedType: 'GRIDVIEW_EDITACTION',
				},
			},
			{
				actionLevel: '100',
				caption: '拷贝',
				captionLanResTag: 'TBB.TEXT.*.COPY',
				name: 'tbitem6',
				showCaption: true,
				tooltip: '拷贝',
				tooltipLanResTag: 'TBB.TOOLTIP.*.COPY',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-copy',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'Copy',
					uIActionMode: 'SYS',
					actionTarget: 'SINGLEKEY',
					uIActionTag: 'Copy',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem6_click',
					actionTag: 'Copy',
					xDataCtrlName: 'grid',
					predefinedType: 'EDITVIEW_COPYACTION',
				},
			},
			{
				name: 'tbitem7',
				itemType: 'SEPERATOR',
			},
			{
				actionLevel: '100',
				caption: '删除',
				captionLanResTag: 'TBB.TEXT.*.REMOVE',
				name: 'tbitem8',
				showCaption: true,
				tooltip: '删除',
				tooltipLanResTag: 'TBB.TOOLTIP.*.REMOVE',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-trash',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'Remove',
					uIActionMode: 'SYS',
					actionTarget: 'MULTIKEY',
					uIActionTag: 'Remove',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem8_click',
					actionTag: 'Remove',
					xDataCtrlName: 'grid',
					predefinedType: 'GRIDVIEW_REMOVEACTION',
				},
			},
			{
				name: 'tbitem9',
				itemType: 'SEPERATOR',
			},
			{
				actionLevel: '100',
				caption: '导出',
				captionLanResTag: 'TBB.TEXT.*.EXPORT',
				name: 'tbitem13',
				showCaption: true,
				tooltip: '导出',
				tooltipLanResTag: 'TBB.TOOLTIP.*.EXPORT',
				itemType: 'DEUIACTION',
				showIcon: true,
				disabled: false,
				cssName: '',
				imagePath: '',
				iconCls: 'fa fa-file-excel-o',
				imagePathX: '',
				dataAccessAction: '',
				noPrivDisplayMode: 2,
				uiAction: {
					codeName: 'ExportExcel',
					uIActionMode: 'SYS',
					actionTarget: '',
					uIActionTag: 'ExportExcel',
					uIActionType: 'DEUIACTION',
				},
				logic: {
					name: 'toolbar_tbitem13_click',
					actionTag: 'ExportExcel',
					xDataCtrlName: 'grid',
					predefinedType: 'GRIDVIEW_EXPORTACTION',
				},
			},
			{
				name: 'tbitem15',
				itemType: 'SEPERATOR',
			},
			{
				actionLevel: '',
				caption: '其它',
				captionLanResTag: '',
				name: 'tbitem16',
				showCaption: true,
				tooltip: '其它',
				tooltipLanResTag: '',
				itemType: 'ITEMS',
				showIcon: true,
				disabled: false,
				visible: true,
				dataAccessAction: '',
				items: [
					{
						actionLevel: '100',
						caption: '导出数据模型',
						captionLanResTag: 'MENUITEM.CAPTION.*.EXPORTSRF',
						name: 'tbitem21',
						showCaption: true,
						tooltip: '导出数据模型',
						tooltipLanResTag: '',
						itemType: 'DEUIACTION',
						showIcon: true,
						disabled: false,
						cssName: '',
						imagePath: '',
						iconCls: 'fa fa-download',
						imagePathX: '',
						dataAccessAction: '',
						noPrivDisplayMode: 2,
						uiAction: {
							codeName: 'ExportModel',
							uIActionMode: 'SYS',
							actionTarget: '',
							uIActionTag: 'ExportModel',
							uIActionType: 'DEUIACTION',
						},
						logic: {
							name: 'toolbar_tbitem21_click',
							actionTag: 'ExportModel',
							xDataCtrlName: 'grid',
							predefinedType: 'GRIDVIEW_EXPORTXMLACTION',
						},
					},
					{
						actionLevel: '100',
						caption: '数据导入',
						captionLanResTag: '',
						name: 'tbitem23',
						showCaption: true,
						tooltip: '数据导入',
						tooltipLanResTag: '',
						itemType: 'DEUIACTION',
						showIcon: true,
						disabled: false,
						cssName: '',
						imagePath: '',
						iconCls: 'fa fa-upload',
						imagePathX: '',
						dataAccessAction: '',
						noPrivDisplayMode: 2,
						uiAction: {
							codeName: 'Import',
							uIActionMode: 'SYS',
							actionTarget: '',
							uIActionTag: 'Import',
							uIActionType: 'DEUIACTION',
						},
						logic: {
							name: 'toolbar_tbitem23_click',
							actionTag: 'Import',
							xDataCtrlName: 'grid',
							predefinedType: 'GRIDVIEW_IMPORTBAR',
						},
					},
					{
						name: 'tbitem17',
						itemType: 'SEPERATOR',
					},
					{
						actionLevel: '100',
						caption: '帮助',
						captionLanResTag: 'TBB.TEXT.*.HELP',
						name: 'tbitem18',
						showCaption: true,
						tooltip: '帮助',
						tooltipLanResTag: 'TBB.TOOLTIP.*.HELP',
						itemType: 'DEUIACTION',
						showIcon: true,
						disabled: false,
						cssName: '',
						imagePath: '',
						iconCls: 'fa fa-question',
						imagePathX: '',
						dataAccessAction: '',
						noPrivDisplayMode: 2,
						uiAction: {
							codeName: 'Help',
							uIActionMode: 'SYS',
							actionTarget: '',
							uIActionTag: 'Help',
							uIActionType: 'DEUIACTION',
						},
						logic: {
							name: 'toolbar_tbitem18_click',
							actionTag: 'Help',
							xDataCtrlName: 'grid',
							predefinedType: 'EDITVIEW_HELPACTION',
						},
					},
				],
			},
		],
		xDataCtrlName: 'grid',
		quickSearchPlaceholder: ['标识', '名称'].join(','),
		useDefaultLayout: true,
		enableRowEdit: false,
		rowActiveMode: 2,
		rowEditDefault: false,
	};
}

export const model = getModel();
